#ifndef __BSP_GPIO_H__
#define __BSP_GPIO_H__

#include "stm32f10x_rcc.h"
#include "stm32f10x_gpio.h"

typedef enum {
	LED_RED,
	LED_GREEN
}LED_ENUM;

#define LED_RED_PIN			GPIO_Pin_5
#define LED_GREEN_PIN		GPIO_Pin_5
//#define LED_YELLOW	GPIO_Pin_8

#define LED_RED_ON() GPIO_ResetBits(GPIOB,LED_RED_PIN)
#define LED_GREEN_ON() GPIO_ResetBits(GPIOE,LED_GREEN_PIN)
//#define LED_YELLOW_ON()	GPIO_ResetBits(GPIOD,LED_YELLOW)

#define LED_RED_OFF() GPIO_SetBits(GPIOB,LED_RED_PIN)
#define LED_GREEN_OFF() GPIO_SetBits(GPIOE,LED_GREEN_PIN)
//#define LED_YELLOW_OFF()	GPIO_SetBits(GPIOD,LED_YELLOW)

void LED_Wai_Init(LED_ENUM LEDx);

#endif


